﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.IO;

namespace Q42.Wheels.Mvc.Paging.Example.Controllers
{
  [HandleError]
  public class HomeController : Controller
  {
    [Paging(DefaultSortColumn = "FullName")]
    public ActionResult Index()
    {
      DirectoryInfo dir = new DirectoryInfo("C://Windows");

      return View(this.GetPage(dir.EnumerateFiles()));
    }
  }
}
